<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*,com.hp.ccue.identity.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>IdM Client Demo</title>
<style type="text/css">
body {
	width: 80%;
	height: 80%;
	position: absolute;
	margin-left: 50px;
	margin-top: 40px;
}
</style>
</head>
<body>
	<h3>Session attribute List:</h3>
	<%
	    Enumeration<?> e = session.getAttributeNames();
	    if (e.hasMoreElements()) {
	%>
	<table border="1">
		<tr>
			<td>Name</td>
			<td>Value</td>
			<%
			    while (e.hasMoreElements()) {
			            String attrName = (String) e.nextElement();
			%>
		
		<tr>
			<td><%=attrName%></td>
			<td><%=session.getAttribute(attrName)%></td>
		</tr>
		<%
		    }
		%>
	</table>

	<%
	    }
	%>
	<hr>
	<a href="idm">View Users</a>
	<br>

	<br>
	<p>
		<a href="idm/logout.jsp">Logout</a>
	</p>

</body>
</html>